package hl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;

public class EDC_HL7SegPID extends MessageComponent{
	
	//Declarations
	public EDC_HL7FldI4 SetID;
	public EDC_HL7FldCX PatientID;
	public EDC_HL7RepFldCX PatientIdentifierList;
	public EDC_HL7RepFldCX AlternatePatientID;
	public EDC_HL7RepFldXPN PatientName;
	public EDC_HL7RepFldXPN MothersMaidenName;
	public EDC_HL7FldTS DateTimeOfBirth;
	public EDC_HL7FldST Sex;
	public EDC_HL7RepFldXPN PatientAlias;
	public EDC_HL7RepFldCE Race;
	public EDC_HL7RepFldXAD PatientAddress;
	public EDC_HL7FldST CountyCode;
	public EDC_HL7RepFldXTN HomePhoneNumber;
	public EDC_HL7RepFldXTN BusinessPhoneNumber;
	public EDC_HL7FldCE PrimaryLanguage;
	public EDC_HL7FldCE MaritalStatus;
	public EDC_HL7FldCE Religion;
	public EDC_HL7FldCX PatientAccountNumber;
	public EDC_HL7FldST SSNNumber;
	public EDC_HL7FldDLN DriversLicenseNumber;
	public EDC_HL7RepFldCX MothersIdentifier;
	public EDC_HL7RepFldCE EthnicGroup;
	public EDC_HL7FldST BirthPlace;
	public EDC_HL7FldST MultipleBirthIndicator;
	public EDC_HL7FldR8 BirthOrder;
	public EDC_HL7RepFldCE Citizenship;
	public EDC_HL7FldCE VeteransMilitaryStatus;
	public EDC_HL7FldCE Nationality;
	public EDC_HL7FldTS PatientDeathDateAndTime;
	public EDC_HL7FldST PatientDeathIndicator;
	
	//Constructor
	public EDC_HL7SegPID(MessageElement elem) {
		super(elem);
		SetID = new EDC_HL7FldI4(elem.getElementAt("SetID"));
		PatientID = new EDC_HL7FldCX(elem.getElementAt("PatientID"));
		PatientIdentifierList = new EDC_HL7RepFldCX(elem.getElementAt("PatientIdentifierList"));
		AlternatePatientID = new EDC_HL7RepFldCX(elem.getElementAt("AlternatePatientID"));
		PatientName = new EDC_HL7RepFldXPN(elem.getElementAt("PatientName"));
		MothersMaidenName = new EDC_HL7RepFldXPN(elem.getElementAt("MothersMaidenName"));
		DateTimeOfBirth = new EDC_HL7FldTS(elem.getElementAt("DateTimeOfBirth"));
		Sex = new EDC_HL7FldST(elem.getElementAt("Sex"));
		PatientAlias = new EDC_HL7RepFldXPN(elem.getElementAt("PatientAlias"));
		Race = new EDC_HL7RepFldCE(elem.getElementAt("Race"));
		PatientAddress = new EDC_HL7RepFldXAD(elem.getElementAt("PatientAddress"));
		CountyCode = new EDC_HL7FldST(elem.getElementAt("CountyCode"));
		HomePhoneNumber = new EDC_HL7RepFldXTN(elem.getElementAt("HomePhoneNumber"));
		BusinessPhoneNumber = new EDC_HL7RepFldXTN(elem.getElementAt("BusinessPhoneNumber"));
		PrimaryLanguage = new EDC_HL7FldCE(elem.getElementAt("PrimaryLanguage"));
		MaritalStatus = new EDC_HL7FldCE(elem.getElementAt("MaritalStatus"));
		Religion = new EDC_HL7FldCE(elem.getElementAt("Religion"));
		PatientAccountNumber = new EDC_HL7FldCX(elem.getElementAt("PatientAccountNumber"));
		SSNNumber = new EDC_HL7FldST(elem.getElementAt("SSNNumber"));
		DriversLicenseNumber = new EDC_HL7FldDLN(elem.getElementAt("DriversLicenseNumber"));
		MothersIdentifier = new EDC_HL7RepFldCX(elem.getElementAt("MothersIdentifier"));
		EthnicGroup = new EDC_HL7RepFldCE(elem.getElementAt("EthnicGroup"));
		BirthPlace = new EDC_HL7FldST(elem.getElementAt("BirthPlace"));
		MultipleBirthIndicator = new EDC_HL7FldST(elem.getElementAt("MultipleBirthIndicator"));
		BirthOrder = new EDC_HL7FldR8(elem.getElementAt("BirthOrder"));
		Citizenship = new EDC_HL7RepFldCE(elem.getElementAt("Citizenship"));
		VeteransMilitaryStatus = new EDC_HL7FldCE(elem.getElementAt("VeteransMilitaryStatus"));
		Nationality = new EDC_HL7FldCE(elem.getElementAt("Nationality"));
		PatientDeathDateAndTime = new EDC_HL7FldTS(elem.getElementAt("PatientDeathDateAndTime"));
		PatientDeathIndicator = new EDC_HL7FldST(elem.getElementAt("PatientDeathIndicator"));
	}

}
